import request from '@/utils/request'
import { imageServUrl } from '@/utils/constants'

export function getAllLabelsApi(params) {
    return request({
        url: imageServUrl + '/labels',
        method: 'get',
        params
    })
}

export function delLabelByIdApi(labelId) {
    return request({
        url: imageServUrl + '/label/' + labelId,
        method: 'delete'
    })
}

export function getImageListFromLabelApi(params) {
    return request({
        url: imageServUrl + '/label_images',
        method: 'get',
        params
    })
}

export function getPageLabelsApi(params) {
    return request({
        url: imageServUrl + '/labels_page',
        method: 'get',
        params
    })
}



